package com.jm.api;

import com.jm.common.conf.api.ApiResult;
import com.jm.constant.SysApiConstant;
import com.jm.service.i.jsoup.JsoupService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(SysApiConstant.OPEN_API + "jsoup")
public class JsoupBrandApi {

    private final JsoupService jsoupService;

    @Autowired
    public JsoupBrandApi(JsoupService jsoupService) {
        this.jsoupService = jsoupService;
    }

    @Operation(summary = "获取品牌数据")
    @GetMapping("/brand")
    @ApiResult
    public Boolean brand() {
        return this.jsoupService.brand();
    }
}
